//
//  ChooseViewController.m
//  LClass
//
//  Created by 严军 on 16/5/30.
//  Copyright © 2016年 YanJun. All rights reserved.
//

#import "ChooseViewController.h"
#import "ChooseView.h"
#import "QQRequestManager+handle.h"
@interface ChooseViewController ()
{
    ChooseView* chooseview;
}
@end

@implementation ChooseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    chooseview=[[ChooseView alloc]init];
    self.view=chooseview;
    chooseview.parmBlock=^(NSDictionary* parDic){
        
        //根据参数请求数据
        [[QQRequestManager sharedRequestManager] GET_kaoQinDataWithParameters:parDic success:^(NSURLSessionDataTask *task, id responseObject) {
            
            //请求成功后跳转到考勤界面
            
        } failure:^(NSURLSessionDataTask *task, NSError *error) {
            
        }];
        
    };
    
    
}

-(void)viewWillAppear:(BOOL)animated
{
    self.navigationItem.title=@"选 择";
    self.navigationController.navigationBar.translucent = NO;
    self.navigationItem.leftItemsSupplementBackButton=NO;
    [self.navigationController.navigationBar setTitleTextAttributes:
     @{NSFontAttributeName:[UIFont boldSystemFontOfSize:16],
       
       NSForegroundColorAttributeName:[UIColor whiteColor]}];
    if (CurrentVersion <= 6.1) {
        self.navigationController.navigationBar.tintColor = [UIColor blackColor];
    } else {
        self.navigationController.navigationBar.barTintColor = [UIColor blackColor];
        self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    }

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
